package com.qf.controller;

import javax.servlet.*;
import java.io.IOException;

/**
 * 测试 Servlet
 * @author 千锋健哥
 */
public class HelloServlet implements Servlet {

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("==========servlet初始化==================");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("==========servlet里面的service方法执行==================");
    }

    @Override
    public void destroy() {
        System.out.println("==========servlet里面的destroy方法执行==================");
    }

    @Override
    public String getServletInfo() {
        return null;
    }
    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

}
